package top.huhuiyu.spirngboot2.total.entity.menu;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class TbMenus implements Serializable {
    private final static long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer mid;
    private String title;
    private String url;
    private String info;
    private String icon;
    private Integer pid;
    private Integer sort;
    @TableField(updateStrategy = FieldStrategy.NEVER, insertStrategy = FieldStrategy.NEVER)
    private Date lastupdate;

    @TableField(exist = false)
    private List<TbMenus> submenus;
}
